﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterSite.Master" AutoEventWireup="true"
    CodeBehind="Default.aspx.cs" Inherits="WebGui.Default" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <title>DIBS - log ind</title>
</asp:Content>
<asp:Content runat="server" ID="Content3" ContentPlaceHolderID="HeadLine">
    <h1>Log ind</h1>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Content" runat="server">
    <asp:LoginView ID="LoginViewDefault" runat="server">
        <AnonymousTemplate>
            <asp:Login ID="LoginBox" runat="server">
                <LayoutTemplate>
                    <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName" CssClass="label">Email:</asp:Label>
                    <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="UserName"
                        ErrorMessage="User Name is required." ToolTip="User Name is required." ValidationGroup="ctl00$LoginBox">*</asp:RequiredFieldValidator>
                    <asp:TextBox ID="UserName" runat="server" CssClass="fields"></asp:TextBox>
                    <asp:RegularExpressionValidator ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
                        ID="ValidateEmail" ControlToValidate="UserName" ErrorMessage="*" runat="server" />
                    <asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password" CssClass="label">Password:</asp:Label>
                    <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="Password"
                        ErrorMessage="Password is required." ToolTip="Password is required." ValidationGroup="ctl00$LoginBox">*</asp:RequiredFieldValidator>
                    <asp:TextBox ID="Password" runat="server" TextMode="Password" CssClass="fields"></asp:TextBox>
                    <br />
                    <asp:CheckBox ID="RememberMe" runat="server" CssClass="label" Text="&nbsp;Husk mig" />
                    <asp:Literal ID="FailureText" runat="server" EnableViewState="False"></asp:Literal>
                    <br />
                    <asp:Button ID="LoginButton" runat="server" CommandName="Login" CssClass="buttons"
                        OnClick="BtnLoginClick" Text="Log Ind" ValidationGroup="ctl00$LoginBox" />
                </LayoutTemplate>
            </asp:Login>
        </AnonymousTemplate>
    </asp:LoginView>
</asp:Content>